<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/10 0010
 * Time: 10:36
 * 优惠信息表
 */
namespace Common\Model;
use Common\Model\CommonModel;
class UserRechargeDiscountModel extends CommonModel{

    protected $_validate = array(
        //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
        array('money', 'require', '充值金额不能为空！', 1, 'regex', CommonModel:: MODEL_BOTH  ),
        array('give_money', 'require', '送的金额不能为空！', 1, 'regex', CommonModel:: MODEL_BOTH  ),
       );
}